<%-- 
    Document   : category
    Created on : May 10, 2013, 5:36:16 PM
    Author     : aptech
--%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@page import="dao.RoomTypeDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Category</title>
        <style>
            body{
                /*width: 1024px;*/

            }
            #wrapper {
                margin: 0 auto;
                width: 1000px;
                height: 600px;
                border: solid 1px #50451E;
                font-family:Verdana, Geneva, sans-serif;
                border:#948f50 solid 1px;
                margin: 0 auto;
            }
            #top_panel {
                height:40px;
                width:100%;
                background-color:#948f50;
            }
            #middle_panel {
                width: 100%;
                height:auto;
            }
            #middle_left_panel {
                height:auto;
                min-height:300px;
                width:200px;
                float:left;
            }
            #menu {
                text-align:center;
                margin-top:200px;
            }
            #menu > span {
                display:block;
                margin-top:20px;
                height:40px;
                width:180px;
                background-color:#60C;
            }
            #menu > p {
                padding-top:10px;
                padding-bottom:10px;
                background-color:#948f50;

                margin-left:10px;
                margin-right:10px;
            }
            #menu > p a {
                width: 100%;
                height: 100%;
                color:inherit !important;
                text-decoration:none;
            }
            #middle_right_panel {
                height:auto;
                min-height:300px;
                width:800px;
                float:left;
            }
            h1 {
                text-align:right;
                font-size:50px;
                font-weight:700;
                font-family:Verdana, Geneva, sans-serif;
            }
            .price {
                font-size:36px;
                font-weight:600px;
                text-align:right;
                clear:both;
                display:block;
            }
            .description {
            }
            .drop {
                display:inline-block;
                color:red;
                float:left;
                width:72px;
                height:72px;
                font-size:72px;
                padding-right:-10px;
                text-indent:-900;
            }
            .page_big_button {
                text-decoration:none;
                background-color:#948f50;
                float:right;
                /*width:200px;*/
                /*	height:50px;*/
                padding:10px;
                font-size:36px;
                font-weight:800;
                display:inline-block;
            }
            .description:first-letter
            {
                font-size:200%;
                color:#8A2BE2;
            } 
        </style>
    </head>
    <body>
        <div id="wrapper">
            <div id="top_panel"></div>
            <div id="middle_panel">
                <div id="middle_left_panel">
                    <div id="menu">


                        <!--                        <p><a href="#">[CRoomtyHolder]</a></p>
                                                <p><a href="#">[CRoomtyHolder]</a></p>
                                                <p><a href="#">[CRoomtyHolder]</a></p>
                                                <p><a href="#">[CRoomtyHolder]</a></p>-->
                        <c:if test="${listS !=null}">

                            <c:forEach items="${listS}" var="rt">
                                <p><a href="ServletController?action=category&mode=detail&id=${rt.typeid}">
                                        <c:out value="${rt.typename}" />
                                    </a></p>
                                </c:forEach>
                            </c:if>



                    </div>
                </div>
                <div id="middle_right_panel">
                    <c:if test="${category != null}">
                        <h1>${category.typename}</h1>
                        <p class="price">${category.price} USD</p>
                        <p class="description">${category.description}</p>
                        <a href="ServletController?action=room&mode=intype&id=${category.typeid}" class="page_big_button">Room in ${category.typename} type</a>
                    </c:if>
                    <c:if test="${category == null}">
                        <h1>${listS.get(0).getTypename()}</h1>
                        <p class="price">${listS.get(0).price} USD</p>
                        <p class="description">${listS.get(0).description}</p>
                        <a href="servletcontroller?action=room&mode=intype&id=${listS.get(0).typeid}" class="page_big_button">Room in ${category.typename} type</a>
                    </c:if>
                    <!--
                       <p class="price">250USD</p>
                       <p class="description"> <span class="drop">C</span>ontrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ip </p>
                       <a href="#" class="page_big_button">Room in this type</a>-->

                    <!--                    <h1> Luxury room </h1>
                                        <p class="price">250USD</p>
                                        <p class="description"> <span class="drop">C</span>ontrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ip </p>
                                        <a href="#" class="page_big_button">Room in this type</a> -->

                </div>
            </div>
        </div>
    </body>
</html>
